<#include "/common/head.ftl">

<html>

<head>

<title>Second Final Test Result</title>

<style>

* {
	font-size:0.35cm;
}
	
table.nameTable {
	empty-cells:show;
	border-top: 1px solid black;
	border-right: 1px solid black;
}

table.nameTable tr {
	
}

table.nameTable tr td {
	border-left: 1px solid black;
	border-bottom: 1px solid black;
}

</style>

</head>

<body style="padding:0cm">

<div style="width:26cm;text-align:left;margin:0cm;padding:0px">

<table cellspacing="5" cell style="font-weight:bold;width:10cm">
	<tr>
		<td rowspan="3"><img src="../images/saigontech.gif"/></td>
		<td colspan="2"><h2>SECOND FINAL TEST RESULT - ${(offering.name)!}</h2></td>
	</tr>
	<tr>
		<td>Spoken Test Date: ${(represent.secondSpokenDate?date)!}</td>
		<td></td>
	</tr>
	<tr>
		<td>Written Test Date: ${(represent.secondWrittenDate?date)!}</td>
		<td></td>				
	</tr>
</table>
<br>
<table class="nameTable" border="0" style="width:100%" cellspadding="0" cellspacing="0">
	<tr style="text-align:center;font-weight:bold;background-color:#D6FAEB">
		<#if noted>
			<td style="width:0.7cm">No.</td>
			<td colspan="2">Student's Name</td>
			<td style="width:3cm">Tel No.</td>
			<td style="width:1.7cm">D.O.B</td>
			<td style="width:1.3cm">Gender</td>
			<td style="width:1.3cm">Listening</td>
			<td style="width:1.3cm">Voca&Gra</td>
			<td style="width:1.3cm">Speaking</td>
			<td style="width:1.3cm">Reading</td>
			<td style="width:1.3cm">Writing</td>
			<td style="width:4.5cm">Note</td>
			<td style="width:1.3cm">Signature</td>
		<#else>
			<td style="width:0.7cm">No.</td>
			<td colspan="2">Student's Name</td>
			<td style="width:3cm">Tel No.</td>
			<td style="width:1.7cm">D.O.B</td>
			<td style="width:1.3cm">Gender</td>
			<td style="width:1.3cm">Listening</td>
			<td style="width:1.3cm">Voca&Gra</td>
			<td style="width:1.3cm">Speaking</td>
			<td style="width:1.3cm">Reading</td>
			<td style="width:1.3cm">Writing</td>
			<td style="width:1.3cm">Note</td>
			<td style="width:1.3cm">Signature</td>
		</#if>
		
	</tr>
	<#list secondTests as test>
		<tr>
			<td style="text-align:center">${test_index + 1}</td>
			<td style="border-right:0cm;width:3.3cm">${(test.offeringMember.receipt.student.lastName)!}</td>
			<td style="border-left:0cm;font-weight:bold;width:1.2cm">${(test.offeringMember.receipt.student.firstName)!}</td>
			<td>${(View.trimPhoneNumber(test.offeringMember.receipt.student.phoneNumber))!'&nbsp;'}</td>
			<td style="text-align:center">${(test.offeringMember.receipt.student.dateOfBirth?date)!}</td>
			<td style="text-align:center">${i18n.getMessage('gender.${test.offeringMember.receipt.student.gender?lower_case}')}</td>
			<td style="text-align:center">${(test.listening)!'&nbsp'}</td>
			<td style="text-align:center">${(test.grammar)!'&nbsp'}</td>
			<td style="text-align:center">${(test.speaking)!'&nbsp'}</td>
			<td style="text-align:center">${(test.reading)!'&nbsp'}</td>
			<td style="text-align:center">${(test.writing)!'&nbsp'}</td>
			<td style="text-align:left">
				<#if (test.allGradeInput)>
					${(test.comment)}
				<#else>
					&nbsp			
				</#if>
			</td>
			<td>&nbsp</td>
		</tr>
	</#list>
</table>

<br/><br/>

<table style="width:100%;text-align:center">
	<tr>
		<td>Hiệu trưởng ký duyệt <br/><br/><br/><br/><br/><br/>Nguyễn Thị Anh Thư</td>
		<td>Kế toán xác nhận <br/><br/><br/><br/><br/><br/>Nguyễn Thắng Bảo</td>
		<td>Ngày &nbsp;&nbsp; tháng &nbsp;&nbsp; năm ${(now.year + 1900)!} <br/> Người lập bảng <br/><br/><br/><br/><br/> Lê Thị Thanh Nhung</td>
	</tr>
</table>

</div>

</body>
</html>